Contribution org.nuxeo.platform.TemplateSources.layouts.contrib--widgets
In component org.nuxeo.platform.TemplateSources.layouts.contrib
org.nuxeo.platform.TemplateSources.layouts.contrib
inside nuxeo-template-rendering-web-7.10-HF02.jar /OSGI-INF/layouts-contrib.xml
This contribution is part of XML component Extension Point
Extension point widgets of component WebLayoutManager.Contributed Items
XML Source
<extension point="widgets" target="org.nuxeo.ecm.platform.forms.layout.WebLayoutManager">
<widget name="fileWithTemplate" type="template">
<labels>
<label mode="any">label.file.content</label>
</labels>
<translated>true</translated>
<fields>
<field>file:content</field>
<field>file:filename</field>
<field>contextData['request/templateId']</field>
</fields>
<widgetModes>
<mode value="create">create</mode>
<mode value="edit">edit</mode>
<mode value="view">view</mode>
<mode value="view">preview</mode>
</widgetModes>
<properties mode="any">
<property name="template">
/widgets/filewithtemplate_widget.xhtml
</property>
<property name="availableTemplates">
#{templateActions.getAvailableOfficeTemplates(value.type)}
</property>
</properties>
</widget>
</extension>